<blockquote class="layui-elem-quote">
    <div class="layui-inline">
        <i class="layui-icon layui-icon-list layui-head-icon"></i>
        <span class="layui-font-16 layui-font-green">订单详情</span>
    </div>
</blockquote>
<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-font-green">基本信息</div>
        <table class="layui-table">
            <tr>
                <th>订单号</th>
                <th>买家</th>
                <th>订单总金额</th>
                <th>订单优惠金额</th>
                <th>实付款金额</th>
                <th>支付方式</th>
                <th>订单状态</th>
            </tr>
            <tr>
                <td>{$row.order_no}</td>
                <td>
                    <img src="{$row.avatar}" class="layui-view-img">
                    {$row.nickname}
                </td>
                <td>{$row.discount_amount+$row.real_amount}</td>
                <td>{$row.discount_amount}</td>
                <td>{$row.real_amount}</td>
                <td>{$row.trade_method}</td>
                <td>{$row.status}</td>
            </tr>
        </table>
    </div>
</div>
<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-font-green">商品信息</div>
        <table class="layui-table">
            <tr>
                <th>商品图片</th>
                <th width="200">商品名称</th>
                <th>商品价格</th>
                <th>商品属性</th>
                <th>购买数量</th>
                <th>总金额</th>
            </tr>
            {foreach $row.items as $vo}
                <tr>
                    <td><img src="{$vo.image}" class="layui-view-img"></td>
                    <td>{$vo.goods_name}</td>
                    <td>{$vo.sell_price}</td>
                    <td>{$vo.attr}</td>
                    <td>{$vo.buy_num}</td>
                    <td>{$vo.total_amount}</td>
                </tr>
            {/foreach}
        </table>
    </div>
</div>
<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-font-green">交易信息</div>
        <table class="layui-table">
            <tr>
                <th>交易单号</th>
                <th>交易金额</th>
                <th>交易方式</th>
                <th>交易状态</th>
                <th>交易时间</th>
            </tr>
            <tr>

                <td>{$row.out_trade_no}</td>
                <td>{$row.trade_fee}</td>
                <td>{$row.trade_method}</td>
                <td>{$row.trade_status}</td>
                <td>
                    {if $row.trade_time>0}
                    {$row.trade_time|date='Y-m-d H:i:s'}
                    {/if}

                </td>
            </tr>
        </table>
    </div>
</div>
<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-font-green">收货信息</div>
        <table class="layui-table">
            <tr>
                <th>收货人姓名</th>
                <th>收货人手机号</th>
                <th>收货地址</th>
            </tr>
            <tr>
                <td>{$row.receiver_name}</td>
                <td>{$row.receiver_phone}</td>
                <td>{$row.province}{$row.city}{$row.county}{$row.address}</td>
            </tr>
        </table>
    </div>
</div>
<script type="text/javascript">
    layui.use('form', function () {

    });
</script>